<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> new document </title>
  <meta name="generator" content="editplus" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />

  <script type="text/javascript" src="{{ MEDIA_URL }}/js/jquery.js"></script>
<script type="text/javascript">
<!--
    function sidebar_delete(item_key){
        if(confirm("确认删除吗？")){
            $.post('/admin/sidebar_delete/', {'item_key': item_key}, function(){
                location.reload()
            });
        }
    }
//-->
</script>

 </head>

 <body>
 <a href="/admin/sidebar_add/">添加sidebar</a>
  <table width="100%" border="1">
    {% for sidebar in sidebar_list %}
    <tr>
        <td>{{ sidebar.title }}</td>
        <td>{{ sidebar.order }}</td>
        <td><a href="/admin/sidebar_edit/?item_key={{ sidebar.key }}">修改</a></td>
        <td><a href="javascript: sidebar_delete('{{ sidebar.key }}')">删除</a></td>

    </tr>
    {% endfor %}
    
  </table>
 </body>
</html>
